package com.dxysun.design.builder;

public class Main
{
	public static void build1()
	{
		CourseBuilder builder = new CourseBuilder();
		builder.addName("设计模式");
		builder.addPpt("【PPT课件】");
		builder.addVideo("【回放视频】");
		builder.addNote("【课堂笔记】");
		builder.addHomework("【课后作业】");
		System.out.println(builder.build());
	}

	public static void main(String[] args)
	{

		Course course = new Course.CourseBuilder()
				.addName("设计模式")
				.addPpt("【PPT课件】")
				.addVideo("【回放视频】")
				.addNote("【课堂笔记】")
				.addHomework("【课后作业】")
				.build();
		System.out.println(course);

	}
}
